class Blog < ActiveRecord::Base
  has_many :privileges
  has_many :users, :through => :privileges
  has_many :settings
  has_many :tags
  
  def skin
    Skin.find(setting('skin') || 'yarbo')
  end
  
  def setting(name)
    System.blog_setting(self, name)
  end
end
